package state.util.array;

public class BooleanArray {
  public boolean[] array = null;
  private int size = 0;
  
  public static BooleanArray create(int len) {
    boolean[] value1 = new boolean[len];
    return new BooleanArray(value1, len);
  }
  
  public static void arraycopy(BooleanArray src, int srcPos, BooleanArray dest, int destPos, int length1) {
    System.arraycopy(src.array, srcPos, dest.array, destPos, length1);
  }
  
  public BooleanArray(boolean[] value1, int length1) {
    array = value1;
    size = length1;
  }
  
  public int len() {
    return size;
  }
  
  public boolean get(int i) {
    return array[i];
  }
  
  public void set(int i, boolean value1) {
    array[i] = value1;
  }
  
  public void setArray(boolean[] value1, int length1) {
    array = value1;
    size = length1;
  }
}
